package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author: wufeng
 * @date: 2018/9/7 15:33
 * @desrcption: 分组管理列表
 */
@Getter
@Setter
@ToString
public class ListGroupListDTO extends BaseDTO {

    private static final long serialVersionUID = -4311433892396061541L;

    private Integer del;

    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.common.appId.NotNull}")
    private Long appId;



    /**
     * 表单
     */
    @NotNull(message = "{dto.msg.common.formId.NotNull}")
    private Long formId;

    /**
     * saas标记
     */
    @NotNull(message = "saasMark {javax.validation.constraints.NotNull.message}")
    @Max(value = 2)
    @Min(value = 1)
    private Integer saasMark;

    /**
     * 业务类型
     */
    @NotNull(message = "businessType {javax.validation.constraints.NotNull.message}")
    private Integer businessType;

    /**
     * 子业务类型
     */
    private Integer subBusinessType;
    /**
     * 菜单id
     */
    private Long menuId;
    /**
     * 是否Paas表单数据回收站
     */
    private Integer dataTrash;

    public ListGroupListDTO(){
        del = 0;
    }
}
